<div ng-controller="AuditCtrl" class="clearfix script-content">
	<div class="wrapper-md">
		<div class="row panel panel-default">
			<div class="col-md-12 search-box m-b-md">
					<div class="legend">查询条件</div>
					<div class="search-content">
						<div class="form-group">
							<label class="control-label">时间范围：</label>
							<input ng-model="date" class="form-control w-md" ui-jq="daterangepicker"
							       ui-options="{format: 'YYYY-MM-DD hh:mm:ss'}" placeholder="请选择时间" />
						</div>
						<div class="form-group">
							<label class="control-label">请求IP：</label>
							<input type="text" class="form-control" ng-model="requestIp" placeholder="请输入请求IP"/>
						</div>
						<div class="form-group">
							<label class="control-label">响应IP：</label>
							<input type="text" class="form-control" ng-model="responseIp" placeholder="请输入响应IP"/>
						</div>
						<div class="form-group">
							<label class="control-label">操作者：</label>
							<select class="form-control" ng-model="searchByUserId">
								<option value="">全部</option>
								<option ng-repeat="(key,item) in userData" value="{{item.id}}" ng-bind="item.name"></option>
							</select>
						</div>
					</div>
					<div class="search-btn">
						<button class="btn btn-primary w-xs m-r" ng-click="search()"><i class="fa fa-search"></i> 查询</button>
						<button class="btn btn-success w-xs" ng-click="reset()"><i class="fa fa-refresh"></i> 重置</button>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12">
						<table class="table b-light m-b-xxs table-navy">
							<thead class="table-header" >
							<tr>
								<th width="10%" class="font-15 text-center">模块</th>
								<th width="10%" class="font-15 text-center">请求IP</th>
								<th width="10%" class="font-15 text-center">响应IP</th>
								<th width="10%" class="font-15 text-center">操作者</th>
								<th width="10%" class="font-15 text-center">请求对象</th>
								<th width="10%" class="font-15 text-center">请求路径</th>
								<th width="20%" class="font-15 text-center">请求参数</th>
								<th width="10%" class="font-15 text-center">处理结果</th>
								<th width="10%" class="font-15 text-center">请求时间</th>
							</tr>
							</thead>
							<tbody>
							<tr ng-repeat="(key,row) in listData">
								<td width="10%" class="font-15 detail-href text-center" style="max-width:97px;" title="{{row.module}}"  ng-click="detail(row,$event)"><div ng-bind="row.module"></div></td>
								<td width="10%" class="font-15 text-center" style="max-width:97px;" title="{{row.requestIp}}"><div  ng-bind="row.requestIp"></div></td>
								<td width="10%" class="font-15 text-center" style="max-width:97px;" title="{{row.responseIp}}"><div  ng-bind="row.responseIp"></div></td>
								<td width="10%" class="font-15 text-center" style="max-width:97px;" title="{{row.username}}"><div ng-bind="row.username"></div></td>
								<td width="10%" class="font-15 text-center" style="max-width:97px;" title="{{row.object}}"><div ng-bind="row.object"></div></td>
								<td width="10%" class="font-15 text-center" style="max-width:97px;" title="{{row.action}}"><div ng-bind="row.action"></div></td>
								<td width="20%" class="font-15 text-center" style="max-width:200px;" title="{{row.detail}}"> <div ng-bind="row.detail"></div></td>
								<td width="10%" class="font-15 text-center" style="max-width:97px;" title="{{row.result}}"><div ng-bind="row.result"></div></td>
								<td width="10%" class="font-15 text-center" style="max-width:97px;" title="{{row.gmtCreate}}"><div ng-bind="row.gmtCreate"></div></td>
							</tr>
							<tr ng-if="isImageData">
								<td class="td-nodata" colspan="9"></td>
							</tr>
							</tbody>
						</table>
						<div class="clearfix">
							<div class="col-sm-6">
								<div class="paginationTables_info">共有<span ng-bind="totalPage"></span>条记录，每页显示<span ng-bind="param.rows"></span>条
								</div>
							</div>
							<div class="col-sm-6 text-right">
								<pagination boundary-links="true" total-items="totalPage" items-per-page="param.rows" max-size="10"
								            ng-model="param.page" ng-change="getList(param.page)" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></pagination>
							</div>
						</div>
					</div>
				</div>
		</div>
	</div>

 <div >
      <div ng-if="showHistory" ng-hide-detail="" class="animated tab-detail"
           ng-class="{true:'bounceInRight',false:'bounceOutRight'}[isActive]">
           <div class="col-md-12" >
             <div class="panel panel-default" style="padding:0;">
               <div class="panel-heading font-bold">
                 <span class="p-l-6">日志详情</span>
               </div>
               <div class="panel-body pmb-block" style="border:none;">
                 <div class="form-horizontal">
         <div class="">
            <div class="pmbb-header">
                <h5 class="console-title">基本信息</h5>
            </div>
            <div class="pmbb-body p-l-30">
                <div class="form-group">
                    <div class="col-lg-6">
                        <dl class="dl-horizontal">
                            <dt>模块：</dt>
                            <dd title="{{supplierDetail.module}}" ng-bind="supplierDetail.module"></dd>
                        </dl>
                    </div>
                    <div class="col-lg-6">
                        <dl class="dl-horizontal">
                            <dt>请求IP：</dt>
                            <dd title="{{supplierDetail.requestIp}}" ng-bind="supplierDetail.requestIp"></dd>
                        </dl>
                    </div>
                </div>

                  <div class="form-group">
                     <div class="col-lg-6">
                        <dl class="dl-horizontal">
                            <dt>请求时间：</dt>
                            <dd title="{{supplierDetail.gmtCreate}}" ng-bind="supplierDetail.gmtCreate"></dd>
                        </dl>
                    </div>
                    <div class="col-lg-6">
                        <dl class="dl-horizontal">
                            <dt>响应IP：</dt>
                            <dd title="{{supplierDetail.responseIp}}" ng-bind="supplierDetail.responseIp"></dd>
                        </dl>
                    </div>
                </div>
                  <div class="form-group">
                    <div class="col-lg-6">
                        <dl class="dl-horizontal">
                            <dt>操作者：</dt>
                            <dd title="{{supplierDetail.username}}" ng-bind="supplierDetail.username"></dd>
                        </dl>
                    </div>
                    <div class="col-lg-6">
                        <dl class="dl-horizontal">
                            <dt>请求对象：</dt>
                            <dd title="{{supplierDetail.object}}" ng-bind="supplierDetail.object"></dd>
                        </dl>
                    </div>
                </div>
                  <div class="form-group">
                    <div class="col-lg-6">
                        <dl class="dl-horizontal">
                            <dt>请求路径：</dt>
                            <dd title="{{supplierDetail.action}}" ng-bind="supplierDetail.action"></dd>
                        </dl>
                    </div>
                    <div class="col-lg-6">
                        <dl class="dl-horizontal">
                            <dt>请求参数：</dt>
                            <dd title="{{supplierDetail.detail}}" ng-bind="supplierDetail.detail"></dd>
                        </dl>
                    </div>
                </div>
                <div class="form-group">
                 
                    <div class="col-lg-12">
                        <dl class="dl-horizontal">
                            <dt>处理结果：</dt>
                            <div title="{{supplierDetail.result}}" ng-bind="supplierDetail.result"></div>
                        </dl>
                    </div>

                </div>
            </div>
        </div>
                 </div>
                 <div class="detail-go-back" ng-click="goBack()"><i class="fa fa-angle-right"></i></div>
               </div>
             </div>
           </div>
      </div>
    </div>
</div>
